Skip to content

Fixed HasOffsetValueType accessory missing main-type #4162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Aug 4, 2025

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 26, 2025

this PR does not fix the initial reported error of the OP in phpstan/phpstan#13270 (comment) (which I think is a valid error)

but I as I understood ondrej's examples in phpstan/phpstan#13270 (comment) it fixes the typing problems

closes phpstan/phpstan#13270

@staabm staabm marked this pull request as ready for review July 26, 2025 15:14
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm staabm force-pushed the bug13270_mixed branch 3 times, most recently from 009847e to cb3f21b Compare July 26, 2025 17:44
@staabm staabm marked this pull request as draft July 26, 2025 17:51
@staabm staabm marked this pull request as ready for review July 27, 2025 09:04
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm
Copy link
Contributor Author

staabm commented Jul 27, 2025

required a bit exploring, and back and forth. reduced the scope of the PR a bit and will send followups instead to keep this one simple.

@ondrejmirtes I think we are good to go now :)

@ondrejmirtes ondrejmirtes merged commit 252390f into phpstan:2.1.x Aug 4, 2025
413 of 419 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@ondrejmirtes
Copy link
Member

I decided for a different approach here: 56a30c2

My reasoning is in the commit description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After modifying array inside foreach phpstan no longer considers it iterable
4 participants